package com.indusfo.spc.controller;


import com.indusfo.spc.pojo.ProStation;

import com.indusfo.spc.pojo.Station;
import com.indusfo.spc.service.ProStationService;
import com.indusfo.spc.vo.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author louk
 * @date 2019/9/11 13:23
 */
@Controller
@RequestMapping("/service/proStation")
public class ProStationController {

    @Resource
    private ProStationService proStationService;


    @RequestMapping("/queryProStation")
    @ResponseBody
    public JSONObject queryProList(ProStation proStation){
        return proStationService.queryProList(proStation);
    }


    /**
     * 过滤掉列表当中的工位
     * @return
     */
    @RequestMapping("/queryFilterStation")
    @ResponseBody
    public JSONObject queryFilterStation(Station station,Integer[] staIds){
        return proStationService.queryFilterStation(station,staIds);
    }


}
